<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>计体重</title>
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.4/lib/index.css">
  <link rel="stylesheet" href="/css/global.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.4/lib/index.css">

  <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
  <link rel="stylesheet" href="/css/global.css">
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vant@2.4/lib/vant.min.js"></script>
  <!--    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>-->
  <script src="https://cdn.bootcss.com/qs/6.5.2/qs.min.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.19.2/axios.js"></script>
</head>
<body>
<div class="bg"></div>
<div id="app">
  <van-row>
    <van-col span="24">
      <van-nav-bar
        title="计体重"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
      />
      <div class="box ml-4 mr-4 p-3">
        <div class="d-flex justify-content-between pb-3 border-bottom">
          <span>早餐</span>
          <span class="color-lesser">共1241千卡</span>
        </div>
        <ul class="breakfast-list">
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="80px"
                height="80px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">鸡蛋1个</p>
              <p class="size1 color-ash mt-2">Nulla non viverra tellus, non</p>
            </div>
            <span class="flex-grow-shrink color-lesser">1241千卡</span>
          </li>
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="80px"
                height="80px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">鸡蛋1个</p>
              <p class="size1 color-ash mt-2">Nulla non viverra tellus, non</p>
            </div>
            <span class="flex-grow-shrink color-lesser">1241千卡</span>
          </li>
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="80px"
                height="80px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">鸡蛋1个</p>
              <p class="size1 color-ash mt-2">Nulla non viverra tellus, non</p>
            </div>
            <span class="flex-grow-shrink color-lesser">1241千卡</span>
          </li>
          <li>
            <div class="flex-grow-shrink">
              <van-image
                width="80px"
                height="80px"
                fit="cover"
                src="https://img.yzcdn.cn/vant/cat.jpeg"
              />
            </div>
            <div class="w-100 pl-3 pr-3">
              <p class="size3 bold">鸡蛋1个</p>
              <p class="size1 color-ash mt-2">Nulla non viverra tellus, non</p>
            </div>
            <span class="flex-grow-shrink color-lesser">1241千卡</span>
          </li>
        </ul>
      </div>
    </van-col>
    <van-col span="24" style="margin-top: 60px">
      <div class="box m-4 text-center" style="padding: 60px 0">
        <p class="size5 bold mb-5">今天的体重</p>
        <div class="d-flex justify-content-center align-items-center">
          <span><van-field class="bg-f9 border" v-model="number" type="number"/></span>
        </div>
        <p class="color-ash size2 mt-2">（kg）</p>
        <div class="ml-5 mr-5 mt-5">
          <van-button square color="linear-gradient(to right, #4bb0ff, #6149f6)" block>确定</van-button>
        </div>
      </div>
    </van-col>
    <van-col span="24"></van-col>
  </van-row>
</div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        number: '',
      };
    },
    methods: {
      onClickLeft() {
        Toast('返回');
      },
    },
  });
</script>
</html>
